﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using YEngineLib;

using Spyfall.Managers;

namespace Spyfall.States
{
    class City
    {
        Texture2D cityTexture;
        Vector2 pos;
        float amount;
        float timer;

        public void Initialize(Texture2D texture)
        {
            cityTexture = texture;

            amount = 1280;
            pos.X = 0;
            pos.Y = 0;
        }

        public void Update(float fElapsedTime)
        {
            pos.Y -= amount / LevelManager.GetInstance.Length * fElapsedTime;
        }

        public void Draw()
        {
            YEngine.Graphics.SpriteBatch.Draw(cityTexture, pos, Color.White);
        }

    }
}
